import {Component, OnInit, ViewEncapsulation, Input} from '@angular/core';
import {CrowdDetailResp} from "@interface/index";




@Component({
  selector: 'crowd-info',
  templateUrl: './crowd-info.component.html',
  styleUrls: ['./crowd-info.component.scss'],
  encapsulation: ViewEncapsulation.None,
})
export class CrowdInfoComponent implements OnInit {
  @Input() userId: string;
  @Input() crowdDetail: CrowdDetailResp;
  public login: boolean;
  // public _crowdDetail:CrowdDetailResp;
/*  @Input()
  set crowdDetail(val:CrowdDetailResp) {
    this._crowdDetail = val;
  }
  get crowdDetail():CrowdDetailResp {
    return this._crowdDetail;
  }*/

  constructor(

  ) {
  }

  ngOnInit() {
    if (this.userId) {
      this.login = true;
    }else {
      this.login = false;
    }
  }
}
